{% extends 'base.html'%}

{% block content %}

<h1>欢迎使用基于深度学习的酒店评论情感分析系统</h1>
<!--<p>{{resultString}}</p>-->
<div class="container">
    <center style="padding-bottom:30px,padding-top:20px">
        <!--        <ul class="nav nav-tabs" id="myTab" role="tablist">-->
        <!--            <li class="nav-item">-->
        <!--                <a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home"-->
        <!--                   aria-selected="true">语句分析</a>-->
        <!--            </li>-->
        <!--            <li class="nav-item">-->
        <!--                <a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab"-->
        <!--                   aria-controls="profile"-->
        <!--                   aria-selected="false">文件分析</a>-->
        <!--            </li>-->
        <!--            <li class="nav-item">-->
        <!--                <a class="nav-link" id="contact-tab" data-toggle="tab" href="#contact" role="tab"-->
        <!--                   aria-controls="contact"-->
        <!--                   aria-selected="false">爬虫分析</a>-->
        <!--            </li>-->
        <!--        </ul>-->
        <!--        <div class="tab-content" id="myTabContent">-->
        <!--            <div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">-->

        <!--                <form class="input-group mb-3" method="GET" action="{% url 'analysis' %}">-->
        <!--                    {% csrf_token %}-->
        <!--                    <input type="text" class="form-control" placeholder="请输入分析的语句"-->
        <!--                           aria-label="{{inputString}}" aria-describedby="button-addon2">-->
        <!--                    <div class="input-group-append">-->
        <!--                        <button class="btn btn-outline-secondary" type="submit" id="button-addon2">分析</button>-->
        <!--                    </div>-->
        <!--                </form>-->
        <!--                <p>{{resultString}}</p>-->
        <!--            </div>-->
        <!--            <div class="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab">...</div>-->
        <!--            <div class="tab-pane fade" id="contact" role="tabpanel" aria-labelledby="contact-tab">...</div>-->
        <!--        </div>-->
        <div class="card text-center" >
            <div class="card-header">
                分析结果
            </div>
            <div class="card-body">
                <h5 class="card-title">{{inputString}}</h5>
                <p class="card-text">{{resultString}}</p>
                <a href="{% url 'home' %}" class="btn btn-primary">返回</a>
            </div>
            <div class="card-footer text-muted">
                {% if positiveTag %}
                <svg t="1589722650480" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1857" width="200" height="200"><path d="M1003.986 512c0 271.716-220.268 491.986-491.986 491.986S20.014 783.716 20.014 512 240.284 20.014 512 20.014c65.424 0 127.868 12.77 184.97 35.954C877.02 129.07 1003.986 305.71 1003.986 512z" fill="#FDDF6D" p-id="1858"></path><path d="M617.43 931.356c-271.716 0-491.986-220.268-491.986-491.986 0-145.168 62.886-275.632 162.888-365.684C129.054 155.124 20.014 320.828 20.014 512c0 271.716 220.268 491.986 491.986 491.986 126.548 0 241.924-47.796 329.098-126.298-67.106 34.31-143.124 53.668-223.668 53.668z" fill="#FCC56B" p-id="1859"></path><path d="M492.588 379.724c-11.054 0-20.014-8.962-20.014-20.014 0-25.816-21.002-46.818-46.818-46.818s-46.818 21.004-46.818 46.818c0 11.054-8.962 20.014-20.014 20.014-11.054 0-20.014-8.962-20.014-20.014 0-47.888 38.962-86.848 86.848-86.848s86.848 38.96 86.848 86.848c-0.002 11.052-8.964 20.014-20.018 20.014zM830.634 379.724c-11.054 0-20.014-8.962-20.014-20.014 0-25.816-21.002-46.818-46.818-46.818s-46.818 21.004-46.818 46.818c0 11.054-8.962 20.014-20.014 20.014s-20.014-8.962-20.014-20.014c0-47.888 38.962-86.848 86.848-86.848 47.886 0 86.848 38.96 86.848 86.848-0.004 11.052-8.964 20.014-20.018 20.014z" fill="#7F184C" p-id="1860"></path><path d="M583.584 871.534c-142.222 0-257.514-115.292-257.514-257.514h515.028c0 142.22-115.294 257.514-257.514 257.514z" fill="#FFFFFF" p-id="1861"></path><path d="M300.576 481.542c-36.536 0-66.156 29.62-66.156 66.156h132.314c-0.004-36.536-29.622-66.156-66.158-66.156zM877.628 481.542c-36.536 0-66.158 29.62-66.158 66.156h132.314c0.002-36.536-29.616-66.156-66.156-66.156z" fill="#F9A880" p-id="1862"></path><path d="M351.386 725.498a257.446 257.446 0 0 0 23.97 40.03h416.456a257.352 257.352 0 0 0 23.97-40.03H351.386z" fill="#E6E6E6" p-id="1863"></path><path d="M935.748 224.546c-56.342-82.904-134.876-147.02-227.102-185.414-10.196-4.248-21.92 0.58-26.168 10.784s0.58 21.922 10.784 26.172c176.598 73.52 290.706 244.628 290.706 435.914 0 260.248-211.724 471.97-471.97 471.97S40.03 772.244 40.03 512 251.752 40.03 512 40.03c11.054 0 20.014-8.962 20.014-20.014S523.054 0 512 0C229.68 0 0 229.68 0 512s229.68 512 512 512 512-229.68 512-512c0-103.106-30.516-202.504-88.252-287.454z" fill="" p-id="1864"></path><path d="M378.936 359.71c0-25.816 21.004-46.818 46.818-46.818s46.818 21.002 46.818 46.818c0 11.054 8.962 20.014 20.014 20.014 11.054 0 20.014-8.962 20.014-20.014 0-47.888-38.96-86.848-86.848-86.848s-86.848 38.96-86.848 86.848c0 11.054 8.962 20.014 20.014 20.014 11.058 0 20.018-8.958 20.018-20.014zM763.8 272.864c-47.888 0-86.848 38.96-86.848 86.848 0 11.054 8.962 20.014 20.014 20.014s20.014-8.962 20.014-20.014c0-25.816 21.004-46.818 46.818-46.818 25.814 0 46.818 21.002 46.818 46.818 0 11.054 8.962 20.014 20.014 20.014s20.014-8.962 20.014-20.014c0.004-47.888-38.954-86.848-86.844-86.848zM306.054 614.018c0 153.03 124.5 277.53 277.53 277.53s277.53-124.5 277.53-277.53c0-11.054-8.962-20.014-20.014-20.014H326.068c-11.052 0-20.014 8.962-20.014 20.014z m514.194 20.016c-10.194 121.63-112.446 217.486-236.664 217.486S357.114 755.666 346.92 634.034h473.328z" fill="" p-id="1865"></path><path d="M631.29 35.012m-20.014 0a20.014 20.014 0 1 0 40.028 0 20.014 20.014 0 1 0-40.028 0Z" fill="" p-id="1866"></path></svg>
                {% else %}
                <svg t="1589723358966" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2011" width="200" height="200"><path d="M512.002 512.002m-491.988 0a491.988 491.988 0 1 0 983.976 0 491.988 491.988 0 1 0-983.976 0Z" fill="#FC4C59" p-id="2012"></path><path d="M617.432 931.356c-271.716 0-491.986-220.268-491.986-491.986 0-145.168 62.886-275.632 162.888-365.684C129.054 155.124 20.014 320.828 20.014 512c0 271.716 220.268 491.986 491.986 491.986 126.548 0 241.924-47.796 329.098-126.298-67.102 34.31-143.124 53.668-223.666 53.668z" fill="#BC3B4A" p-id="2013"></path><path d="M803.118 812.228a20 20 0 0 1-17.504-10.28c-24.46-43.906-70.842-71.186-121.04-71.186-48.902 0-95.764 27.49-122.292 71.738-5.686 9.478-17.984 12.55-27.458 6.874-9.482-5.684-12.558-17.976-6.874-27.458 33.724-56.244 93.738-91.184 156.624-91.184 64.712 0 124.492 35.152 156.01 91.736 5.38 9.656 1.914 21.846-7.744 27.222a19.902 19.902 0 0 1-9.722 2.538z" fill="#7C152E" p-id="2014"></path><path d="M510.962 501.142m-54.592 0a54.592 54.592 0 1 0 109.184 0 54.592 54.592 0 1 0-109.184 0Z" fill="#FFFFFF" p-id="2015"></path><path d="M803.096 486.384m-54.592 0a54.592 54.592 0 1 0 109.184 0 54.592 54.592 0 1 0-109.184 0Z" fill="#FFFFFF" p-id="2016"></path><path d="M511.93 575.788c-9.098 0-18.218-1.628-27.002-4.9-19.336-7.202-34.71-21.504-43.29-40.266-8.654-18.926-8.814-41.578-0.442-62.15a83.574 83.574 0 0 1 19.97-29.214 2521.62 2521.62 0 0 1-10.898-5.626c-13.668-7.096-24.656-13.584-35.28-19.854-12.562-7.414-25.552-15.08-44.01-24.432-9.86-4.994-13.808-17.036-8.812-26.898 4.996-9.864 17.036-13.81 26.9-8.812 19.61 9.93 33.164 17.934 46.272 25.67 10.632 6.276 20.676 12.204 33.38 18.8a4036.06 4036.06 0 0 0 24.786 12.732c34.06 17.4 63.476 32.426 83.056 48.312a20.044 20.044 0 0 1 5.59 7.218c8.582 18.766 9.34 39.752 2.14 59.088-7.202 19.334-21.506 34.71-40.27 43.29-10.25 4.688-21.154 7.042-32.09 7.042z m-10.322-115.74c-10.578 4.172-18.86 12.51-23.338 23.516-4.23 10.396-4.316 21.482-0.23 30.412a36.986 36.986 0 0 0 20.858 19.404 37 37 0 0 0 28.466-1.03 36.982 36.982 0 0 0 19.404-20.86 36.946 36.946 0 0 0 0.574-24.338c-11.464-8.516-27.306-17.436-45.734-27.104zM805.718 562.164c-10.938 0-21.842-2.354-32.084-7.04-18.764-8.58-33.066-23.956-40.27-43.29-7.2-19.336-6.442-40.32 2.14-59.088a20.044 20.044 0 0 1 6.308-7.774c21.036-15.54 48.82-31.696 82.572-48.014 50.656-24.492 54.024-26.468 95.216-50.632l6.258-3.67c9.534-5.594 21.798-2.394 27.39 7.142 5.594 9.534 2.394 21.8-7.142 27.39l-6.252 3.666c-36.53 21.43-44.334 26.006-80.996 43.87a77.428 77.428 0 0 1 17.38 24.69c9.468 21.292 9.38 46.556-0.232 67.578-8.58 18.764-23.956 33.068-43.29 40.27a77.154 77.154 0 0 1-26.998 4.902zM770.2 473.846a36.918 36.918 0 0 0 0.676 24.018 36.99 36.99 0 0 0 19.404 20.86 37.008 37.008 0 0 0 28.466 1.03 36.99 36.99 0 0 0 20.86-19.404c4.838-10.582 4.86-23.866 0.056-34.67-2.978-6.698-9.172-15.424-21.93-20.512-18.502 9.808-34.412 19.406-47.532 28.678z" fill="#7C152E" p-id="2017"></path><path d="M940.912 232.29C887.956 151.25 813.6 87.066 725.88 46.682c-10.048-4.62-21.928-0.23-26.55 9.81-4.622 10.042-0.23 21.93 9.81 26.55 80.876 37.23 149.432 96.412 198.266 171.144C957.498 330.85 983.974 420 983.974 512c0 260.248-211.726 471.968-471.97 471.968S40.03 772.248 40.03 512.002 251.752 40.03 512 40.03c11.056 0 20.014-8.958 20.014-20.014S523.056 0 512 0C229.68 0 0 229.684 0 512.002S229.68 1024 512 1024s512-229.68 512-511.998c0-99.8-28.73-196.522-83.088-279.712z" fill="" p-id="2018"></path><path d="M507.946 781.92c-5.684 9.482-2.608 21.774 6.874 27.458 9.474 5.678 21.77 2.604 27.458-6.874 26.528-44.248 73.39-71.738 122.292-71.738 50.202 0 96.58 27.278 121.04 71.186a20 20 0 0 0 27.226 7.748c9.658-5.38 13.124-17.568 7.744-27.222-31.52-56.586-91.3-91.736-156.01-91.736-62.886-0.006-122.9 34.934-156.624 91.178zM468.714 398.106c-12.702-6.596-22.744-12.524-33.38-18.8-13.108-7.736-26.662-15.74-46.272-25.67-9.86-4.998-21.904-1.054-26.9 8.812-4.996 9.86-1.048 21.904 8.812 26.898 18.458 9.35 31.45 17.018 44.012 24.432 10.624 6.274 21.614 12.758 35.28 19.854 3.682 1.914 7.318 3.786 10.898 5.626a83.546 83.546 0 0 0-19.97 29.214c-8.372 20.572-8.212 43.224 0.442 62.15 8.58 18.764 23.954 33.064 43.29 40.266a77.236 77.236 0 0 0 27.002 4.9c10.938 0 21.842-2.354 32.084-7.04 18.764-8.58 33.068-23.956 40.27-43.29 7.2-19.336 6.442-40.32-2.14-59.088a19.966 19.966 0 0 0-5.59-7.218c-19.58-15.886-48.996-30.916-83.056-48.312-7.958-4.07-16.238-8.3-24.782-12.734z m78.632 89.042a36.92 36.92 0 0 1-0.574 24.338 36.99 36.99 0 0 1-19.404 20.86 37 37 0 0 1-28.466 1.03 36.98 36.98 0 0 1-20.858-19.404c-4.086-8.932-4.002-20.018 0.23-30.412 4.478-11.002 12.758-19.344 23.338-23.516 18.424 9.672 34.266 18.592 45.734 27.104zM946.108 377.192c9.534-5.59 12.732-17.854 7.142-27.39-5.59-9.538-17.854-12.732-27.39-7.142l-6.258 3.67c-41.192 24.164-44.558 26.14-95.216 50.632-33.752 16.318-61.538 32.474-82.572 48.014a19.994 19.994 0 0 0-6.308 7.774c-8.582 18.766-9.34 39.752-2.14 59.088 7.202 19.334 21.506 34.71 40.27 43.29 10.244 4.686 21.148 7.04 32.084 7.04 9.098 0 18.218-1.628 27.002-4.9 19.334-7.202 34.71-21.506 43.29-40.27 9.612-21.02 9.7-46.284 0.232-67.578a77.366 77.366 0 0 0-17.38-24.69c36.658-17.864 44.462-22.44 80.996-43.87l6.248-3.668z m-106.5 123.156a36.982 36.982 0 0 1-20.86 19.404 37.018 37.018 0 0 1-28.466-1.03 36.982 36.982 0 0 1-19.404-20.86 36.93 36.93 0 0 1-0.676-24.018c13.118-9.274 29.03-18.868 47.536-28.678 12.758 5.084 18.952 13.812 21.93 20.512 4.8 10.806 4.776 24.092-0.06 34.67z" fill="" p-id="2019"></path><path d="M646.262 40.03m-20.014 0a20.014 20.014 0 1 0 40.028 0 20.014 20.014 0 1 0-40.028 0Z" fill="" p-id="2020"></path></svg>
                {% endif %}
            </div>
        </div>

    </center >

</div>

{% endblock %}